package com.woniuxy.project115.kaer.tenant.controller;


import com.woniuxy.project115.kaer.commons.util.Result;
import com.woniuxy.project115.kaer.tenant.entity.ServiceInfoItem;
import com.woniuxy.project115.kaer.tenant.service.ServiceInfoItemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author HuH
 * @since 2025年02月21日
 */
@RestController
@RequestMapping("/serviceInfoItem")
@Api(tags = "服务商品项目接口")
public class ServiceInfoItemController {
    @Resource
    private ServiceInfoItemService serviceInfoItemService;

    @PostMapping("/getServiceInfoItem")
    @ApiOperation("获取服务商品项目")
    @ApiImplicitParam(name = "serviceInfoId", value = "服务商品项目id", required = true, dataType = "Integer")
    public Result<ServiceInfoItem> getServiceInfoItem(Integer serviceInfoId) throws Exception {
        return Result.succeed("success", null, serviceInfoItemService.getServiceInfoItem(serviceInfoId));
    }

}

